package com.design.twords.database;

import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

/**
 * Create by Alen
 * Time:  22:16
 */
public class BookList extends LitePalSupport {
    @Column(unique = true)
    private int bookId;
    //书籍名
    @Column(unique = true,nullable = false)
    private String bookname;
    //总单词数
    private int wordcounts;
    //创建时间
    private String createtime;

    @Column(defaultValue = "0")
    private int inUse;
    //附加信息
    private String remark;

    @Override
    public String toString() {
        return "BookList{" +
                "bookid=" + bookId +
                ", bookname='" + bookname + '\'' +
                ", wordcounts=" + wordcounts +
                ", createtime='" + createtime + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public int getWordcounts() {
        return wordcounts;
    }

    public void setWordcounts(int wordcounts) {
        this.wordcounts = wordcounts;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getInUse() {
        return inUse;
    }

    public void setInUse(int inUse) {
        this.inUse = inUse;
    }
}
